// JavaScript Document


<!-- end scripts-->
jQuery(function(){	
	jQuery('#main-nav ul.sf-menu').superfish();
	jQuery('.sf-menu').mobileMenu();
	/* ====== PrettyPhoto ====== */
	jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({hook: 'data-rel'});
	jQuery('a[data-rel]').each(function() {
		jQuery(this).attr('rel', $(this).attr('data-rel')).removeAttr('data-rel');
	});
	jQuery('#portfolio-scroll').carouFredSel({
		responsive  : true,
		items: {
				visible		: {
					min			: 1,
					max			: 3
				},
				width: 300,
				height: '100%'
			},
		scroll: 1,
		auto : {
				easing		: "linear",
				duration	: 1000,
				pauseDuration: 4000,
				pauseOnHover: true
				},
		prev : "#portfolio-scroll-prev",
		next : "#portfolio-scroll-next",
		pagination: "#portfolio-scroll-pagination"
	});
	
	jQuery('ul.widget-carousel').carouFredSel({
		auto:false,
		responsive  : true,
		items: {
				visible: 1, 
				width: 260
			},
		prev : "#widget-carousel-prev",
		next : "#widget-carousel-next",
		scroll: 1
	});
});



$(document).ready(function(){
	$('.flexslider').flexslider({
		directionNav: true
	});
});

